<?
require "include/bittorrent.php";
dbconn(false);
if (get_user_class() < UC_MODERATOR)
	error("Permission denied.");

ob_start();
phpinfo();
$info = ob_get_clean();
$matches = array ();
$i = preg_match ('%(<style type="text/css">.*</style>).*<body>(.*)</body>%s', $info, $matches);
stdhead("PHP Server Info");
//print $matches[1]; # Style information
?>

<style type="text/css">
#container .p {text-align: left;}
#container .e {background-color: #ccccff; font-weight: bold; color: #000000;}
#container .h {background-color: #9999cc; font-weight: bold; color: #000000;}
#container .v {background-color: #cccccc; color: #000000;}
#container .vr {background-color: #cccccc; text-align: right; color: #000000;}
#container .center {text-align: center;}
#container .center table { margin-left: auto; margin-right: auto; text-align: left;}
#container .center th { text-align: center !important; }
#container pre {margin: 0px; font-family: monospace;}
#container a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
#container a:hover {text-decoration: underline;}
#container table {border-collapse: collapse;}
#container td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
#container h1 {font-size: 150%;}
#container h2 {font-size: 125%;}
#container img {float: right; border: 0px;}
#container hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
</style>

<div id="container" style="font-family:sans-serif;">

<?
print $matches[2]; # Body
?>

</div>

<?
stdfoot();
?>